package com.qs.auto.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the auto_vehicle_make_mst database table.
 * 
 */
@Entity
@Table(name="auto_vehicle_make_mst")
public class AutoVehicleMakeMst implements Serializable {
	private static final long serialVersionUID = 1L;
	private String vehicleMakeId;
	private String createdBy;
	private Date createdDt;
	private String make;
	private String updatedBy;
	private Date updatedDt;
	private List<AutoVehicleDetail> autoVehicleDetails;
	private List<AutoVehicleModelMst> autoVehicleModelMsts;

    public AutoVehicleMakeMst() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="VEHICLE_MAKE_ID")
	public String getVehicleMakeId() {
		return this.vehicleMakeId;
	}

	public void setVehicleMakeId(String vehicleMakeId) {
		this.vehicleMakeId = vehicleMakeId;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="MAKE")
	public String getMake() {
		return this.make;
	}

	public void setMake(String make) {
		this.make = make;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to AutoVehicleDetail
	@OneToMany(mappedBy="autoVehicleMakeMst")
	public List<AutoVehicleDetail> getAutoVehicleDetails() {
		return this.autoVehicleDetails;
	}

	public void setAutoVehicleDetails(List<AutoVehicleDetail> autoVehicleDetails) {
		this.autoVehicleDetails = autoVehicleDetails;
	}
	

	//bi-directional many-to-one association to AutoVehicleModelMst
	@OneToMany(mappedBy="autoVehicleMakeMst")
	public List<AutoVehicleModelMst> getAutoVehicleModelMsts() {
		return this.autoVehicleModelMsts;
	}

	public void setAutoVehicleModelMsts(List<AutoVehicleModelMst> autoVehicleModelMsts) {
		this.autoVehicleModelMsts = autoVehicleModelMsts;
	}
	
}